﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>

<div style="overflow: auto;">
    <table>
        <tr>
            <th>
                消息名称
            </th>
            <th>
            </th>
        </tr>
        <%var dt = ViewData["msgs"] as System.Data.DataTable; %>
        <%if (dt != null)
          {
              var rowCount = dt.Rows.Count;
              for (var rowIndex = 0; rowIndex < rowCount; rowIndex++)
              {
        %>
        <tr>
            <td>
                <%=dt.Rows[rowIndex]["name"]%>
            </td>
            <td>
               <a onclick="Sys.Mvc.AsyncHyperlink.handleClick(this, new Sys.UI.DomEvent(event), { insertionMode: Sys.Mvc.InsertionMode.replace,
                updateTargetId: '<%=dt.Rows[rowIndex]["update"] %>', onSuccess: Function.createDelegate(this, <%=dt.Rows[rowIndex]["success"] %>) });"
                href = '<%=dt.Rows[rowIndex]["link"] %>'>
                查看</a>
            </td>
        </tr>
        <%}
          }%>
    </table>
</div>
